﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.IO;
using System.Text.RegularExpressions;


namespace ExpLib.ServiceShell
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : System.Configuration.Install.Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();

            String[] cmdArgs = Environment.GetCommandLineArgs();

            String executeServiceName = Path.GetFileNameWithoutExtension(cmdArgs[1]);
            this.mainServiceInstaller.ServiceName = executeServiceName;
            this.mainServiceInstaller.DisplayName = executeServiceName;
           
        }
    }
}
